You should disable standby and hibernation for the duration that you're using a VNC client, otherwise you're liable to be disconnected permenantly after a while.